package com.andy.blog.common.enums;

import lombok.Getter;

import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;

/**
 * Created by andy on 2024/4/7 15:59
 **/
public enum AlbumPhotoEnum {
    /**
     * 首页
     */
    P_HOME("P_HOME", "首页"),
    /**
     * 友链
     */
    P_FRIEND("P_FRIEND", "友链"),
    /**
     * 留言板
     */
    P_MESSAGE("P_MESSAGE", "留言板"),
    /**
     *
     */
    P_ALBUM("P_ALBUM", "首页");

    @Getter
    private final String code;
    @Getter
    private final String desc;

    AlbumPhotoEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static List<String> getCodeList() {
        return Arrays.stream(values()).map(AlbumPhotoEnum::getCode).collect(Collectors.toList());
    }
}
